<style type="text/css">
.singlebox{
	float:left;
	width:50%;
	height:auto;
}
.loginform{
	
}
label{
	width:150px;
	float:left;
}
</style>
<script type="text/javascript">

</script>
<div id="login" class="singlebox">
	<?
		echo form_open(base_url().'index.php/user/login',array('class'=>'loginform','id'=>'loginform'));
		echo form_fieldset("Login");
		echo form_label("Username : ","username");
		echo form_input("username");
		echo "<br/><br/>";
		echo form_label("Password : ","pwd");
		echo form_password("pwd");
		echo "<br/><br/>";
		echo form_submit("userlogin","Log In");
		echo form_fieldset_close();
		echo form_close();
	?>
</div>

<div id="regiser" class="singlebox">
	<?
		echo form_open(base_url().'index.php/user/add');
		echo form_fieldset("Register");
		echo form_label("Username : ","username");
		echo form_input("username");
		echo "<br/><br/>";
		echo form_label("Password : ","pwd");
		echo form_password("pwd");
		echo "<br/><br/>";
		echo form_label("Email : ","email");
		echo form_input("email");
		echo "<br/><br/>";
		echo form_submit("userregister","Register");
		echo form_fieldset_close();
		echo form_close();
	?>
</div>